package com.example.travelservlet.collection.repository;

import com.example.travelservlet.entity.Collection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author 30697
 */
public interface CollectionRepository extends JpaRepository<Collection,String>, JpaSpecificationExecutor {

    Collection findCollectionByUserId(String userId);

    List<Collection> findCollectionsByUserId(String userId);

}
